package com.lai.laiojcodesandbox.model;

import lombok.*;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
public class ExecuteCodeResponse {

    /*
     * 输出用例
     */
    private List<String> outputList;

    /*
    * 接口信息
    */
    private String message;


    private Integer status;

    /*
    * 判题信息
    * */
    private JudgeInfo judgeInfo;

    /**
     * 返回失败信息
     * @param status 状态
     * @return 失败信息
     */
    public static ExecuteCodeResponse fail(Integer status){
        return ExecuteCodeResponse.builder().status(status).build();
    }

}
